

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.io.*,java.sql.*" %>

<!DOCTYPE html>
<html>
    <head>
        
       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="default.css" rel="stylesheet" type="text/css" media="screen" />
	<link rel="stylesheet" href="validationEngine.jquery.css" type="text/css"/>
        <script src="jquery-1.8.2.js" type="text/javascript">
	</script>
        <script src="jquery.validationEngine-en.js" type="text/javascript" >
	</script>
        <script src="jquery.validationEngine.js" type="text/javascript">
	</script>
        <script>
	
		jQuery(document).ready(function(){
			// binds form submission and fields to the validation engine
			jQuery("#login").validationEngine();
		});
		
		</script>
    </head>
    <body>
        <h1>Product Entry</h1>
        <form action="productdb.jsp" method="post">
        <table border="0">
            <tr>
                <td>Product Id:</td>
                <td><input type="text" class="validate[required] contact_input" name="ptid" id="ptid"/></td>
            </tr>
            <tr>
                <td>Product Name:</td>
                <td><input type="text" class="validate[required] contact_input" name="ptname" id="ptname"/></td>
            </tr>
            <tr>
                <td>Product Category:</td>
                <td><input type="text" class="validate[required] contact_input" name="ptcat" id="ptcat"/></td>
            </tr>
            <tr>
                <td>Product Company:</td>
                <td><input type="text" class="validate[required] contact_input" name="ptcomp" id="ptcomp"/></td>
            </tr>
            <tr>
                <td>Party Id:</td>
                <td><input type="text" class="validate[required] contact_input" name="prid" id="prid"/></td>
            </tr>
            <tr>
                <td>Base Price</td>
                <td><input type="text" class="validate[required] contact_input" name="bprice" id="bprice"/></td>
            </tr>
            <tr>
                <td>Selling Price</td>
                <td><input type="text" class="validate[required] contact_input" name="sprice" id="sprice"/></td>
            </tr>
            <tr>
                <td>Product Description:</td>
                <td><textarea rows="5" cols="15" class="validate[required] contact_input" name="pdesc" id="pbillno"/></textarea></td>
            </tr>
            <tr>
                <td><input type="submit" value="Add"/>
                    <input type="reset"/><br/></td>
            </tr>
        </table>
        </form>
        
        
        
    </body>
</html>
